package cn.legend.travel.ask.dao.persist.mapper;

import cn.legend.travel.ask.pojo.entity.Ask;
import cn.legend.travel.ask.pojo.vo.*;
import cn.legend.travel.common.pojo.vo.PageData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface AsksMapper extends BaseMapper<Ask> {
    List<AskVo> getAsks(Integer pageNum, Integer pageSize,String sort);
    List<UserSortVo> getBestUsers(Date date,String sort);
    List<AnswerVo> getAnswers(Long questionId);
    int addLikes(Long question);
    int cancelLikes(Long questionId);
    int addView(Long questionId);
    int report(Long questionId);
    List<AsksCitySimpleVO> getByCity(String city);
}
